package com.njegovanobradovic.entities;

import java.util.Date;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import org.apache.tapestry5.beaneditor.NonVisual;

import com.njegovanobradovic.core.facade.BaseDO;

@Entity
public class Page extends BaseDO{
	@NonVisual
	private Date date = new Date();
	private boolean active;
	private int orderNum;
	@NotNull
	private String pageName;
	@NotNull
	private String title;
	@NotNull
	private String description;

	private String content;
	
	private boolean slideshow;
	private boolean aside;
	private boolean contactForm;

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public String getPageName() {
		return pageName;
	}

	public void setPageName(String pageName) {
		this.pageName = pageName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String descrition) {
		this.description = descrition;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public boolean isSlideshow() {
		return slideshow;
	}

	public void setSlideshow(boolean slideshow) {
		this.slideshow = slideshow;
	}

	public boolean isAside() {
		return aside;
	}

	public void setAside(boolean aside) {
		this.aside = aside;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public boolean isContactForm() {
		return contactForm;
	}

	public void setContactForm(boolean contactForm) {
		this.contactForm = contactForm;
	}
}
